package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.OutDepotBillProduct;
import com.weixing.mall.provider.model.dto.ChgDepotNumDto;
import com.weixing.mall.provider.model.query.DepotBillDetilQuery;
import com.weixing.mall.provider.model.vo.OutDepotBillProductDetilVo;
import com.weixing.mall.provider.model.vo.OutDepotBillProductVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 仓库模块-出库单商品关联表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Repository
public interface OutDepotBillProductMapper extends BaseMapper<OutDepotBillProduct> {

    IPage<OutDepotBillProductVo> getOutDepotBillProductByOutDeoptId(@Param("pg") Page page,Long outDepotId);

    List<OutDepotBillProductVo> getOutDepotBillProductByOutDeoptId(Long outDepotId);

    void outDepotChgNum(@Param("qs") ChgDepotNumDto chgDepotNumDto);

    IPage<OutDepotBillProductDetilVo> getOutDepotBillDetilList(@Param("pg") Page page,@Param("qs") DepotBillDetilQuery depotBillDetilQuery);
}
